]> dgit.raspbian.org Git - gnome-shell.git/commit
js: Change main.pushModal to return the Clutter.Grab handle
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 25 Nov 2021 09:49:42 +0000 (10:49 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Sat, 29 Jan 2022 00:16:30 +0000 (01:16 +0100)
commit7419674bd39b0ac644b3fdb1cb5ba584f20526ee
tree4f2bb0ba96a796b4039570e8a41e1004d0c6438e
parent2709f6c102b2c3a0229ef88bf1f053fd51fbdbaa
js: Change main.pushModal to return the Clutter.Grab handle

All callers have been updated to keep this handle to identify their
own grab.

Also, optionally use the windowing state to determine whether
the grab is suitable for the specific uses. This removes the need
to trying to grab twice in the places where we settle for a keyboard
grab.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2045>
12 files changed:
js/gdm/loginDialog.js
js/ui/dnd.js
js/ui/grabHelper.js
js/ui/lookingGlass.js
js/ui/main.js
js/ui/modalDialog.js
js/ui/overview.js
js/ui/padOsd.js
js/ui/popupMenu.js
js/ui/screenShield.js
js/ui/switcherPopup.js
js/ui/unlockDialog.js